package com._复习;

public class Test08 {
    public static void main(String[] args) {
     int[] arr={2,6,9,12,8,11};
     int  a = 0;
        for (int i = 0; i < arr.length; i++) {
            if(arr[i]%2==0){
                System.out.print(i+" ");
                System.out.println(arr[i]);
                a++;


            }
        }
        System.out.println("个数为："+a);
    }
}
